<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:body>
	<ui:composition template="templates/commonPageDetailsOffer.xhtml">
		<ui:define name="pagecontent">

			<div id="offerDetails">

				<div id="labelOffer">
					<h2>
						<h:outputText value="#{offersListMb.offer.labelOffer}" />
					</h2>
					<hr />

					<div class="rowDetails">
						<h:graphicImage
							value="#{offersListMb.offer.supplierOffer.description.photoDescription}" />

					</div>

					<div class="details">
						<span class="activity"> <h:outputText
								value="#{offersListMb.offer.supplierOffer.activity.labelActivity}" /></span>
						<br /> <br /> <span class="desc"> <h:outputText
								value="#{offersListMb.offer.supplierOffer.description.textDescription}" /></span>
						<br />
						<h:outputText
							value="#{offersListMb.offer.supplierOffer.adress.country}" />
						<br />
						<div class="Date">
							<br /> Debut du séjour :
							<h:outputText value="#{offersListMb.offer.rate.period.startDate}" />
							<br /> Fin du séjour :
							<h:outputText value="#{offersListMb.offer.rate.period.endDate}" />
							<br /> <br /> <span class="detailprice"> Prix :<h:outputText
									styleClass="priceNum"
									value=" #{offersListMb.offer.rate.price.preTaxPrice*loginMB.taxChangeCoeff}">
									<f:convertNumber maxFractionDigits="2" minFractionDigits="2" />
								</h:outputText>
								<h:outputText value=" #{loginMB.currency}" /></span>
						</div>
					</div>
						<h:link outcome="createcomment" styleClass="comment"
									rendered="#{loginMB.userBu.connected}">Let a comment</h:link>
				</div>


			</div>

			<br style="clear: both" />
		</ui:define>
	</ui:composition>
</h:body>
</html>